using System;

using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework;
using Castle.ActiveRecord.Framework.Config;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace WOODIFramework.Model.Test
{
    /// <summary>
    /// Summary description for AbstractTestCase
    /// </summary>
    [TestClass]
    public abstract class AbstractModelTestCase
    {
        [ClassInitialize()]
        public static void MyClassInitialize(TestContext testContext)
        {
            
        }
        

        [ClassCleanup()]
        public static void MyClassCleanup()
        {
            
        }
        
        [TestInitialize()]
        public void MyTestInitialize()
        {
            IConfigurationSource source = ActiveRecordSectionHandler.Instance;

            //ActiveRecordStarter.Initialize(source);

            ActiveRecordStarter.Initialize(System.Reflection.Assembly.Load("WOODIFramework.Model"), source);

            

            // Remember to add the types, for example
            //ActiveRecordStarter.Initialize( source, typeof(Page) );
            ActiveRecordStarter.CreateSchema();

            
        }
        
        [TestCleanup()]
        public void MyTestCleanup()
        {
            //ActiveRecordStarter.DropSchema();
        }

    }
}
